package com.umpay.dto.merBusi.req.consume;


import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

/*******************************************************************
 * description :  外部交易入账文件上传通知 业务处理请求类 
 * @author zhangru
 * @date 2018年4月20日 上午11:13:14
 * @version 1.0
 *******************************************************************/
public class ConsumeFileUploadNotifyBusiReq extends CommonBusiReq {
	
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId ; //	平台编号
	@NotEmpty(message = "服务器异步通知路径不能为空")
	@Pattern(message="服务器异步通知路径格式不正确")
	private String notifyUrl; //	服务器异步通知路径
	@NotEmpty(message = "业务日期不能为空")
	@Pattern(message="业务日期格式不正确")
	private String busiDate; //	业务日期
	@NotEmpty(message = "业务类型不能为空")
	@Pattern(message="业务类型格式不正确")
	private String busiId; //	业务类型
	@NotEmpty(message = "批次号不能为空")
	@Pattern(message="批次号格式不正确")
	private String batchId; //	批次号
	@NotEmpty(message = "请求总金额不能为空")
	@Pattern(message="请求总金额格式不正确")
	private String totalAmt; //	请求总金额
	@NotEmpty(message = "请求总条目数不能为空")
	@Pattern(message="请求总条目数格式不正确")
	private String totalNum; //	请求总条目数
	@NotEmpty(message = "文件MD5值不能为空")
	@Pattern(message="文件MD5值格式不正确")
	private String fileMd5; //	文件MD5值
	@NotEmpty(message = "业务产品号不能为空")
	@Pattern(message="业务产品号格式不正确")
	private String bproductId;	//变长8	业务产品号
	@NotEmpty(message = "支付产品号不能为空")
	@Pattern(message="支付产品号格式不正确")
	private String pproductId;	//定长8	产品号
	
	public String getMerId() {
		return merId;
	}
	public void setMerId(String merId) {
		this.merId = merId;
	}
	public String getNotifyUrl() {
		return notifyUrl;
	}
	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	public String getBusiDate() {
		return busiDate;
	}
	public void setBusiDate(String busiDate) {
		this.busiDate = busiDate;
	}
	public String getBusiId() {
		return busiId;
	}
	public void setBusiId(String busiId) {
		this.busiId = busiId;
	}
	public String getBatchId() {
		return batchId;
	}
	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}
	public String getTotalAmt() {
		return totalAmt;
	}
	public void setTotalAmt(String totalAmt) {
		this.totalAmt = totalAmt;
	}
	public String getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(String totalNum) {
		this.totalNum = totalNum;
	}
	public String getFileMd5() {
		return fileMd5;
	}
	public void setFileMd5(String fileMd5) {
		this.fileMd5 = fileMd5;
	}
	public String getBproductId() {
		return bproductId;
	}
	public void setBproductId(String bproductId) {
		this.bproductId = bproductId;
	}
	public String getPproductId() {
		return pproductId;
	}
	public void setPproductId(String pproductId) {
		this.pproductId = pproductId;
	}
	@Override
	public String toString() {
		return "ConsumeFileUploadNotifyBusiReq [ " + super.toString() 
				+ ", merId=" + merId + ", notifyUrl=" + notifyUrl + ", busiDate=" + busiDate
		        + ", busiId=" + busiId + ", batchId=" + batchId + ", totalAmt=" + totalAmt + ", totalNum=" + totalNum
		        + ", fileMd5=" + fileMd5 + ", bproductId=" + bproductId + ", pproductId=" + pproductId + "]";
	}
	
}
